/**
 * @author leihfei
 * @date 2019-05-06
 * @description 资源管理业务接口
 */

import { Injectable } from '@angular/core';
import { HttpService } from '../core/http.service';
import { Observable } from 'rxjs';
import { SERVERS_NAME } from '../config/config';

@Injectable()
export class SourceServer {
  constructor(private http: HttpService) {}

  /**
   * @author leihfei
   * @date 2019-05-06 通过id删除资源
   */
  deleteFile(ids: Array<string>): Observable<any> {
    return this.http.post(ids, SERVERS_NAME.SECURITY_SERVER + 'sys/source/delete');
  }
}
